<?
 require_once("./phone.php");
 
 if(isset($_POST['CreatePhone']))
 {
 	if($_POST['CreatePhone'] === '1')
	{
		$results = AddPhone($_POST);
		
		header("location:../users/edit.php?id=$_POST[id]");
	}
 }
 
 if(isset($_GET['addressid']))
 {
 	if($_GET['addressid'])
 	{
 		$results = delPhone($_GET['addressid']);
	
		header("location:../users/edit.php?id=$_GET[id]");
 	}
 }
 
 if(isset($_POST['UpdatePhone']))
 {
 	if($_POST['UpdatePhone'] === '1')
	{
		print_r($_POST);
		
		$results = updatePhone($_POST);
		
		print_r($results);
		
		header("location:../users/edit.php?id=$_POST[Customer_id]");
	}
 }
 
 
?>